package skyinline.swing.jdbc;

public class J26_SungJukVO {

	private String sjno;
	private String name;
	private String kor;
	private String eng;
	private String mat;
	private String tot;
	private String avg;
	private String grd;
	private String regdate;
	
	
	public J26_SungJukVO() {
		sjno = null;
		name = null;
		kor = null;
		eng = null;
		mat = null;
		tot = null;
		avg = null;
		grd = null;
		regdate = null;
	}
	
	public J26_SungJukVO(String sjno, String name, String kor, String eng, String mat) {
		this.sjno = sjno;
		this.name = name;
		this.kor = kor;
		this.eng = eng;
		this.mat = mat;
	}

	public void setSjno(String sjno) { this.sjno = sjno; }
	public void setName(String name) { this.name = name; }
	public void setKor(String kor) { this.kor = kor; }
 	public void setEng(String eng) { this.eng = eng; }
	public void setMat(String mat) { this.mat = mat; }
	public void setTot(String tot) { this.tot = tot; }
	public void setAvg(String avg) { this.avg = avg; }
	public void setGrd(String grd) { this.grd = grd; }
	public void setRegdate(String regdate) { this.regdate = regdate; }
	public String getSjno() { return sjno; }
	public String getName() { return name; }
	public String getKor() { return kor; }
	public String getEng() { return eng; }
	public String getMat() { return mat; }
	public String getTot() { return tot; }
	public String getAvg() { return avg; }
	public String getGrd() { return grd; }
	public String getRegdate() { return regdate; }
	
	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append("*** 입력된 정보 ***");
		if ( getSjno() != null ) {
			sb.append("\n○ 학번 : ").append(getSjno());
		}
		sb.append("\n○ 이름 : ").append(getName()).append("\n○ 국어 : ").append(getKor())
		.append("\n○ 영어 : ").append(getEng()).append("\n○ 수학 : ").append(getMat())
		.append("\n○ 총점 : ").append(getTot()).append("\n○ 평균 : ").append(getAvg())
		.append("\n○ 학점 : ").append(getGrd());
		if ( getRegdate() != null ) {
			sb.append("\n○ 등록일자 : ").append(getRegdate());
		}
		
		return sb.toString();
	}
}
